//
//  HMXMPPRoomManager.h
//  HMWeChat
//
//  Created by apple on 2017/5/13.
//  Copyright © 2017年 itheima. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface HMXMPPRoomManager : NSObject

//房间集合  value: room  key: roomJID.user
@property (nonatomic, strong) NSMutableDictionary *roomCache;

//初始化
+ (instancetype)sharedManager;


/**
 创建/加入群聊 没有该房间则创建,有则加入

 @param roomJID 房间jid
 @param nickname 在房间中的昵称
 */
- (void)createOrJoinRoomWithRoomJID:(XMPPJID *)roomJID andNickname:(NSString *)nickname;

@end
